package com.ltu.domain.mp_entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ltu.domain.BaseEntity;
import lombok.experimental.Accessors;

/**
 * <p>
 * 微信支付宝回调记录
 * </p>
 * 
 * @author 若尘
 * @since 2022-02-21
 */
@Accessors(chain = true)
@TableName("sys_pay_call_back")
@ApiModel(value = "PayCallBackEntity对象", description = "微信支付宝回调记录")
public class PayCallBackEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = " call_back_type:回调平台1微信2支付宝 ")
	@TableField(value = "call_back_type")
	private Byte callBackType;
	@ApiModelProperty(value = " transaction_id:回调单号 ")
	@TableField(value = "transaction_id")
	private String transactionId;
	@ApiModelProperty(value = " order_no:我方支付单号 ")
	@TableField(value = "order_no")
	private String orderNo;
	@ApiModelProperty(value = " appid:小程序id ")
	@TableField(value = "appid")
	private String appid;
	@ApiModelProperty(value = " mchId:商户ID ")
	@TableField(value = "mchId")
	private String mchId;
	@ApiModelProperty(value = " result_code:支付结果 ")
	@TableField(value = "result_code")
	private String resultCode;
	@ApiModelProperty(value = " err_code:错误码 ")
	@TableField(value = "err_code")
	private String errCode;
	@ApiModelProperty(value = " err_code_des:错误描述 ")
	@TableField(value = "err_code_des")
	private String errCodeDes;
	@ApiModelProperty(value = " openid:小程序用户openid ")
	@TableField(value = "openid")
	private String openid;
	@ApiModelProperty(value = " total_fee:订单总额 ")
	@TableField(value = "total_fee")
	private Integer totalFee;
	@ApiModelProperty(value = " time_end:支付完成时间 ")
	@TableField(value = "time_end")
	private String timeEnd;
	@ApiModelProperty(value = " create_time:创建时间 ")
	@TableField(value = "create_time")
	private Date createTime;
	@ApiModelProperty(value = " 支付记录id ")
	@TableField(value = "pay_record_id")
	private Integer PayRecordId;
	@ApiModelProperty(value = " user_id:缴费人 ")
	@TableField(value = "user_id")
	private Integer userId;

	/**
	 * 缴费人
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * 缴费人
	 */
	public PayCallBackEntity setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	/**
	 * 回调平台1微信2支付宝
	 */
	public Byte getCallBackType() {
		return callBackType;
	}

	/**
	 * 回调平台1微信2支付宝
	 */
	public PayCallBackEntity setCallBackType(Byte callBackType) {
		this.callBackType = callBackType;
		return this;
	}

	public Integer getPayRecordId() {
		return PayRecordId;
	}

	public PayCallBackEntity setPayRecordId(Integer payRecordId) {
		PayRecordId = payRecordId;
		return this;
	}

	/**
	 * 回调单号
	 */
	public String getTransactionId() {
		return transactionId;
	}

	/**
	 * 回调单号
	 */
	public PayCallBackEntity setTransactionId(String transactionId) {
		this.transactionId = transactionId;
		return this;
	}

	/**
	 * 我方支付单号
	 */
	public String getOrderNo() {
		return orderNo;
	}

	/**
	 * 我方支付单号
	 */
	public PayCallBackEntity setOrderNo(String orderNo) {
		this.orderNo = orderNo;
		return this;
	}

	/**
	 * 小程序id
	 */
	public String getAppid() {
		return appid;
	}

	/**
	 * 小程序id
	 */
	public PayCallBackEntity setAppid(String appid) {
		this.appid = appid;
		return this;
	}

	/**
	 * 商户ID
	 */
	public String getMchId() {
		return mchId;
	}

	/**
	 * 商户ID
	 */
	public PayCallBackEntity setMchId(String mchId) {
		this.mchId = mchId;
		return this;
	}

	/**
	 * 支付结果
	 */
	public String getResultCode() {
		return resultCode;
	}

	/**
	 * 支付结果
	 */
	public PayCallBackEntity setResultCode(String resultCode) {
		this.resultCode = resultCode;
		return this;
	}

	/**
	 * 错误码
	 */
	public String getErrCode() {
		return errCode;
	}

	/**
	 * 错误码
	 */
	public PayCallBackEntity setErrCode(String errCode) {
		this.errCode = errCode;
		return this;
	}

	/**
	 * 错误描述
	 */
	public String getErrCodeDes() {
		return errCodeDes;
	}

	/**
	 * 错误描述
	 */
	public PayCallBackEntity setErrCodeDes(String errCodeDes) {
		this.errCodeDes = errCodeDes;
		return this;
	}

	/**
	 * 小程序用户openid
	 */
	public String getOpenid() {
		return openid;
	}

	/**
	 * 小程序用户openid
	 */
	public PayCallBackEntity setOpenid(String openid) {
		this.openid = openid;
		return this;
	}

	/**
	 * 订单总额
	 */
	public Integer getTotalFee() {
		return totalFee;
	}

	/**
	 * 订单总额
	 */
	public PayCallBackEntity setTotalFee(Integer totalFee) {
		this.totalFee = totalFee;
		return this;
	}

	/**
	 * 支付完成时间
	 */
	public String getTimeEnd() {
		return timeEnd;
	}

	/**
	 * 支付完成时间
	 */
	public PayCallBackEntity setTimeEnd(String timeEnd) {
		this.timeEnd = timeEnd;
		return this;
	}

	/**
	 * 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 创建时间
	 */
	public PayCallBackEntity setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

}
